package com.tfr.core.main;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import com.tfr.core.dataelements.Actor;
import com.tfr.core.dataelements.Movie;
import com.tfr.core.utility.WikiUtility;

public class MainEval {

	public static List<String> MOVIE_LIST = Arrays.asList(new String[] {
			"Adhurs", "Annavaram", "Badri", "Brindavanam", "dongadonga",
			"Dookudu", "GudumbaShankar", "Jalsa", "Kantri", "Kushi", "Pokiri",
			"Shakti", "YamaDonga", "ItluSravaniSubramanyam","Ala_modalaindi" });

	public static List<String> ACTOR_LIST = Arrays.asList(new String[] {
			"MaheshBabu", "PawanKalyan", "NtrJr", "Chiranjeevi", "BalaKrishna",
			"RaviTeja","Nagarjuna" });

	public static void main(String[] args) {
		for (String actor : ACTOR_LIST) {
			String path = "Resources/" + actor + ".txt";
			ArrayList<ArrayList<String>> listOfLabelsAndValues = WikiUtility
					.doWikiFetchingAndFormatting(path, "Actor");
			Actor A = new Actor();
			A = WikiUtility.getActorFromWikiData(listOfLabelsAndValues);
			A.printActorDetails();
			System.out
					.println("======================================================================================");
		}
		for (String movie : MOVIE_LIST) {
			String path = "Resources/" + movie + ".txt";
			ArrayList<ArrayList<String>> listOfLabelsAndValues = WikiUtility
					.doWikiFetchingAndFormatting(path, "Movie");
			Movie M = new Movie();
			M = WikiUtility.getMovieFromWikiData(listOfLabelsAndValues);
			M.printMovieDetails();
			System.out
					.println("======================================================================================");
		}

	}

}
